package com.xw.unification.helper;

public class ApiVersionHelper {

    private static final ThreadLocal<String> VERSION_THREAD_LOCAL = ThreadLocal.withInitial(() -> "");

    public static String getVersion() {
        return VERSION_THREAD_LOCAL.get();
    }

    protected static void setVersion(String version) {
        VERSION_THREAD_LOCAL.set(version);
    }

    protected static void removeVersion() {
        VERSION_THREAD_LOCAL.remove();
    }
}
